var mongoose = require("mongoose");
mongoose.connect('mongodb://localhost/StudentMS'); 

var db = mongoose.connection;
db.once('open', function(err){
    console.log("数据库成功打开！");
});

module.exports = db;